| |
How To Create Your Own Skin For Title ButtonsSince the version 4.0 Actual Tools programs support custom skins for their extra title buttons. Skin is a particular set of images used to draw those extra buttons in a title bar. These images should fit the current style of standard window buttons which may vary widely especially when using non-standard UI themes. Actual Tools programs' title buttons skin is described in XML, and this description is stored in a special skin index file. This skin index file can be placed either into a separate folder or into a ZIP archive. Skin Naming ConventionsActual Tools programs use some naming conventions for folders or ZIP files containing title buttons skins. These conventions let provide an automatic detection and use of a proper title buttons skin when user selects a new UI theme in the Display Properties system dialog. So if you want to use the automatic detection feature then you should name your custom skin in the following manner:
Most of themes don't contain any styles other than NormalColor so you should name your custom skin folder/ZIP file something like MyTheme_NormalColor (or MyTheme_NormalColor.zip if you are using the ZIP file as a skin container). Skin Index File FormatIn according to XML (eXtensible Markup Language) format, title buttons skin index file defines the special tags containing the information about pictures. Here is the general content of the index file: <skin> <skininfo>My skin</skininfo> <buttons> <button name="operation name">image file name.bmp</button> <button name="operation name_Small">image file name_Small.bmp</button> ... </buttons> </skin> All image file names can include a path name relative to the folder where the index file is placed but we recommend you to place the buttons images in the same folder/ZIP archive as the index file, in such case you should provide file names only without any path name. Pictures FormatAs follows from the index file format, each button must have two different images: normal and small. Both images must be BMP files having the 256 color palette and of the following size: normal - 13x13 pixels, small - 8x8 pixels. The full list of pictures is the following:
Applying the SkinAfter you prepared the skin index file and the images, you can set this your skin as a default using the Actual Tools program's Title Buttons skin options; or, if you named your skin properly, you should deselect and then select again the desired theme - and the skin should be applied automatically. |